home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Multimedia Selection
/
Multimedia Selection Volume One - CD-ROM
/
MULTIMEDIA SELECTION____________.ISO
/
programz
/
fli
/
flisrc
/
jseek.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-02-26
|
391 b
|
21 lines
#include "aai86.h"
#include "aados.h"
/* Reposition file pointer */
long dos_seek (Jfile f, long offset, int mode)
{
union i86_regs reg;
reg.b.ah = 0x42;
reg.b.al = mode;
reg.w.bx = f;
reg.w.cx = i86_ptr_seg((void *)offset);
reg.w.dx = i86_ptr_offset((void *)offset);
if (i86_sysint(0x21,®,®)&1)
return(-1);
else
return(i86_make_long(reg.w.ax, reg.w.dx));
}